/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Race White Middle East</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S15824 (C-0-T14914-S15814-S15824-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getRaceWhiteMiddleEast()
 * @model extendedMetaData="name='RaceWhiteMiddleEast'"
 * @generated
 */
public enum RaceWhiteMiddleEast implements Enumerator {
	/**
	 * The '<em><b>21188</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21188_VALUE
	 * @generated
	 * @ordered
	 */
	_21188(0, "_21188", "2118-8"),

	/**
	 * The '<em><b>21261</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21261_VALUE
	 * @generated
	 * @ordered
	 */
	_21261(1, "_21261", "2126-1"),

	/**
	 * The '<em><b>21196</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21196_VALUE
	 * @generated
	 * @ordered
	 */
	_21196(2, "_21196", "2119-6"),

	/**
	 * The '<em><b>21204</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21204_VALUE
	 * @generated
	 * @ordered
	 */
	_21204(3, "_21204", "2120-4"),

	/**
	 * The '<em><b>21212</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21212_VALUE
	 * @generated
	 * @ordered
	 */
	_21212(4, "_21212", "2121-2"),

	/**
	 * The '<em><b>21220</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21220_VALUE
	 * @generated
	 * @ordered
	 */
	_21220(5, "_21220", "2122-0"),

	/**
	 * The '<em><b>21279</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21279_VALUE
	 * @generated
	 * @ordered
	 */
	_21279(6, "_21279", "2127-9"),

	/**
	 * The '<em><b>21238</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21238_VALUE
	 * @generated
	 * @ordered
	 */
	_21238(7, "_21238", "2123-8"),

	/**
	 * The '<em><b>21246</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21246_VALUE
	 * @generated
	 * @ordered
	 */
	_21246(8, "_21246", "2124-6"),

	/**
	 * The '<em><b>21253</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21253_VALUE
	 * @generated
	 * @ordered
	 */
	_21253(9, "_21253", "2125-3");

	/**
	 * The '<em><b>21188</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21188</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21188
	 * @model literal="2118-8"
	 * @generated
	 * @ordered
	 */
	public static final int _21188_VALUE = 0;

	/**
	 * The '<em><b>21261</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21261</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21261
	 * @model literal="2126-1"
	 * @generated
	 * @ordered
	 */
	public static final int _21261_VALUE = 1;

	/**
	 * The '<em><b>21196</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21196</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21196
	 * @model literal="2119-6"
	 * @generated
	 * @ordered
	 */
	public static final int _21196_VALUE = 2;

	/**
	 * The '<em><b>21204</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21204</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21204
	 * @model literal="2120-4"
	 * @generated
	 * @ordered
	 */
	public static final int _21204_VALUE = 3;

	/**
	 * The '<em><b>21212</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21212</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21212
	 * @model literal="2121-2"
	 * @generated
	 * @ordered
	 */
	public static final int _21212_VALUE = 4;

	/**
	 * The '<em><b>21220</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21220</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21220
	 * @model literal="2122-0"
	 * @generated
	 * @ordered
	 */
	public static final int _21220_VALUE = 5;

	/**
	 * The '<em><b>21279</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21279</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21279
	 * @model literal="2127-9"
	 * @generated
	 * @ordered
	 */
	public static final int _21279_VALUE = 6;

	/**
	 * The '<em><b>21238</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21238</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21238
	 * @model literal="2123-8"
	 * @generated
	 * @ordered
	 */
	public static final int _21238_VALUE = 7;

	/**
	 * The '<em><b>21246</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21246</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21246
	 * @model literal="2124-6"
	 * @generated
	 * @ordered
	 */
	public static final int _21246_VALUE = 8;

	/**
	 * The '<em><b>21253</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21253</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21253
	 * @model literal="2125-3"
	 * @generated
	 * @ordered
	 */
	public static final int _21253_VALUE = 9;

	/**
	 * An array of all the '<em><b>Race White Middle East</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final RaceWhiteMiddleEast[] VALUES_ARRAY =
		new RaceWhiteMiddleEast[] {
			_21188,
			_21261,
			_21196,
			_21204,
			_21212,
			_21220,
			_21279,
			_21238,
			_21246,
			_21253,
		};

	/**
	 * A public read-only list of all the '<em><b>Race White Middle East</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<RaceWhiteMiddleEast> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Race White Middle East</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceWhiteMiddleEast get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceWhiteMiddleEast result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race White Middle East</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceWhiteMiddleEast getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceWhiteMiddleEast result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race White Middle East</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceWhiteMiddleEast get(int value) {
		switch (value) {
			case _21188_VALUE: return _21188;
			case _21261_VALUE: return _21261;
			case _21196_VALUE: return _21196;
			case _21204_VALUE: return _21204;
			case _21212_VALUE: return _21212;
			case _21220_VALUE: return _21220;
			case _21279_VALUE: return _21279;
			case _21238_VALUE: return _21238;
			case _21246_VALUE: return _21246;
			case _21253_VALUE: return _21253;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private RaceWhiteMiddleEast(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //RaceWhiteMiddleEast
